﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TrabiBT
{

    public partial class SettingsForm : Form
    {
        private string port;

        public string Port
        {
            set { 
                  port = value;
                  comboBox1.Text = port;
                }
            get { return port; }
        }
        public SettingsForm()
        {
            InitializeComponent();
            comboBox1.Text = port;
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Port = comboBox1.SelectedItem.ToString();
        }

        private void okBtn_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }

    }
} 